<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.5"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SWM34S_LVGL7.11_SWMUI: C:/Users/DELL/Desktop/Commit/lvgl/SWM34S_LVGL7.11_SWMUI_20230515/APP/Common Module/power_manager.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">SWM34S_LVGL7.11_SWMUI<span id="projectnumber">&#160;V7.9</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.5 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_0ca16891106f5a3e9ad635a0d6c5f98f.html">APP</a></li><li class="navelem"><a class="el" href="dir_df4e0e4e72f77ab290fd1a24f190250a.html">Common Module</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle"><div class="title">power_manager.h</div></div>
</div><!--header-->
<div class="contents">
<a href="power__manager_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span> </div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno">   22</span><span class="preprocessor">#ifndef __POWER_MANAGER_H__</span></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span><span class="preprocessor">#define __POWER_MANAGER_H__</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span> </div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span><span class="preprocessor">#include &quot;SWM341.h&quot;</span></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span> </div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"><a class="line" href="power__manager_8h.html#ad68f0f1a7d5e0cc311f261c21716f8c1">   28</a></span><span class="keyword">typedef</span> <span class="keyword">enum</span></div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno">   29</span>{</div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"><a class="line" href="power__manager_8h.html#ad68f0f1a7d5e0cc311f261c21716f8c1aeb339438b5c866323b92ac8f8c71564c">   30</a></span>    <a class="code hl_enumvalue" href="power__manager_8h.html#ad68f0f1a7d5e0cc311f261c21716f8c1aeb339438b5c866323b92ac8f8c71564c">PM_MODE_NORMAL</a> = 0, </div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"><a class="line" href="power__manager_8h.html#ad68f0f1a7d5e0cc311f261c21716f8c1a7f72cb1eff8d0a943b7029b3e93c4e67">   31</a></span>    <a class="code hl_enumvalue" href="power__manager_8h.html#ad68f0f1a7d5e0cc311f261c21716f8c1a7f72cb1eff8d0a943b7029b3e93c4e67">PM_MODE_SLEEP</a>,      </div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno">   32</span>    <a class="code hl_enumvalue" href="power__manager_8h.html#ad68f0f1a7d5e0cc311f261c21716f8c1a0558d994d2c989e32c28ba7be299c026">PM_MODE_STOP</a>        </div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"><a class="line" href="power__manager_8h.html#ad68f0f1a7d5e0cc311f261c21716f8c1a0558d994d2c989e32c28ba7be299c026">   33</a></span>} <a class="code hl_enumeration" href="power__manager_8h.html#ad68f0f1a7d5e0cc311f261c21716f8c1">pm_mode_t</a>;</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno">   34</span> </div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno">   40</span><span class="keywordtype">void</span> <a class="code hl_function" href="power__manager_8h.html#aa125d952f6750a2c86b46ecfc611b399">pm_request</a>(<a class="code hl_enumeration" href="power__manager_8h.html#ad68f0f1a7d5e0cc311f261c21716f8c1">pm_mode_t</a> mode);</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno">   41</span> </div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno">   50</span><span class="keywordtype">void</span> <a class="code hl_function" href="power__manager_8h.html#a07250972b4737e676c66368d6b55a53f">pm_register</a>(<a class="code hl_enumeration" href="power__manager_8h.html#ad68f0f1a7d5e0cc311f261c21716f8c1">pm_mode_t</a> mode, <span class="keywordtype">void</span> (*request_cb)(<span class="keywordtype">void</span>), <span class="keywordtype">void</span> (*resume_cb)(<span class="keywordtype">void</span>));</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno">   51</span> </div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno">   52</span><span class="preprocessor">#endif </span><span class="comment">//__POWER_MANAGER_H__</span></div>
<div class="ttc" id="apower__manager_8h_html_a07250972b4737e676c66368d6b55a53f"><div class="ttname"><a href="power__manager_8h.html#a07250972b4737e676c66368d6b55a53f">pm_register</a></div><div class="ttdeci">void pm_register(pm_mode_t mode, void(*request_cb)(void), void(*resume_cb)(void))</div><div class="ttdoc">注册电源模式变化时的回调函数</div><div class="ttdef"><b>Definition:</b> <a href="power__manager_8c_source.html#l00097">power_manager.c:97</a></div></div>
<div class="ttc" id="apower__manager_8h_html_aa125d952f6750a2c86b46ecfc611b399"><div class="ttname"><a href="power__manager_8h.html#aa125d952f6750a2c86b46ecfc611b399">pm_request</a></div><div class="ttdeci">void pm_request(pm_mode_t mode)</div><div class="ttdoc">请求进入某种电源模式</div><div class="ttdef"><b>Definition:</b> <a href="power__manager_8c_source.html#l00067">power_manager.c:67</a></div></div>
<div class="ttc" id="apower__manager_8h_html_ad68f0f1a7d5e0cc311f261c21716f8c1"><div class="ttname"><a href="power__manager_8h.html#ad68f0f1a7d5e0cc311f261c21716f8c1">pm_mode_t</a></div><div class="ttdeci">pm_mode_t</div><div class="ttdoc">电源模式</div><div class="ttdef"><b>Definition:</b> <a href="power__manager_8h_source.html#l00028">power_manager.h:29</a></div></div>
<div class="ttc" id="apower__manager_8h_html_ad68f0f1a7d5e0cc311f261c21716f8c1a0558d994d2c989e32c28ba7be299c026"><div class="ttname"><a href="power__manager_8h.html#ad68f0f1a7d5e0cc311f261c21716f8c1a0558d994d2c989e32c28ba7be299c026">PM_MODE_STOP</a></div><div class="ttdeci">@ PM_MODE_STOP</div><div class="ttdoc">深度睡眠模式, 二级低功耗</div><div class="ttdef"><b>Definition:</b> <a href="power__manager_8h_source.html#l00033">power_manager.h:32</a></div></div>
<div class="ttc" id="apower__manager_8h_html_ad68f0f1a7d5e0cc311f261c21716f8c1a7f72cb1eff8d0a943b7029b3e93c4e67"><div class="ttname"><a href="power__manager_8h.html#ad68f0f1a7d5e0cc311f261c21716f8c1a7f72cb1eff8d0a943b7029b3e93c4e67">PM_MODE_SLEEP</a></div><div class="ttdeci">@ PM_MODE_SLEEP</div><div class="ttdoc">浅度睡眠模式, 一级低功耗</div><div class="ttdef"><b>Definition:</b> <a href="power__manager_8h_source.html#l00031">power_manager.h:31</a></div></div>
<div class="ttc" id="apower__manager_8h_html_ad68f0f1a7d5e0cc311f261c21716f8c1aeb339438b5c866323b92ac8f8c71564c"><div class="ttname"><a href="power__manager_8h.html#ad68f0f1a7d5e0cc311f261c21716f8c1aeb339438b5c866323b92ac8f8c71564c">PM_MODE_NORMAL</a></div><div class="ttdeci">@ PM_MODE_NORMAL</div><div class="ttdoc">正常活跃模式, 不锁功耗墙</div><div class="ttdef"><b>Definition:</b> <a href="power__manager_8h_source.html#l00030">power_manager.h:30</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5
</small></address>
</body>
</html>
